import { Directive } from "vue";
import type { App } from 'vue';

import * as directives from "./permission"

export default (app: App<Element>) => {
  Object.keys(directives).forEach((key) => {
    app.directive(key, (directives as { [key: string]: Directive })[key])
  })
};
